{extend name="template/base_iframe" /}

{block name="style"}
    <link href="//cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet">
{/block}
{block name="content"}
    <div class="pd-5">
        <form action="{:url('/admin/auth_group/set_user')}" class="form-inline" role="form" id="search-form">
            <input type="hidden" name="id" value="{$id}">
            <input name="username" value="{$username}" type="text" class="form-control"  placeholder="用户名称">
            <button type="submit" class="btn btn-info">搜索  </button>
            <button type="reset" class="btn btn-default btn-reset">重置  </button>

        </form>
    </div>
    <div class="pd-5">
        <form id="set" >
            <input type="hidden" name="id" value="{$id}">

            <table class="table table-border table-bordered table-hover table-bg table-sort">
                <thead>
                    <tr class="text-c">
                        <th width="10%">
                            <input type="checkbox" id="checkbox-1" class="select-all">
                            <label for="checkbox-1">全选</label>
                        </th>
                        <th>帐号</th>
                        <th>登录次数</th>
                        <th>状态</th>
                        <th>最后登录时间</th>
                    </tr>
                </thead>
                {volist name="info" id="v"}
                    <tbody>
                        <tr class="text-c">
                            <td class="text-c" width="5%"><input type="checkbox" name="user_id[]" class="index-chkbox" value="{$v.id}" {if condition="in_array($v.id,$is_user)"}checked{/if}/></td>
                            <td>{$v.username}</td>
                            <td>{$v.login_count}</td>
                            <td>{$v.status? '<span class="label label-success radius">启用</span>' : '<span class="label label-danger radius">禁用</span>'}</td>
                            <td>{$v.last_login_time|date="y-m-d H:i:s",###}</td>
                        </tr>
                    </tbody>
                {/volist}
            </table>

            <div class="ml-10">
                {$info->render()}
            </div>

        </form>
    </div>
{/block}



{block name="script"}
	<script type="text/javascript" src="__AJS__/auth_group/set_user_page.js"></script>
{/block}